home *** CD-ROM | disk | FTP | other *** search
/ No Fragments Archive 12: Textmags & Docs / nf_archive_12.iso / MAGS / SOURCES / ATARI_SRC.ZIP / atari source / AHDI / CHNLTST / SPARROW.H < prev    next >
Encoding:
C/C++ Source or Header  |  2001-02-09  |  3.3 KB  |  115 lines

  1. /* A set of useful defines for SPARROW */
  2. /* Complied from everybody working on the machine */
  3.  
  4. #define        Config        ((char *) 0xFFFF8006l)
  5. #define        Clock_Sel    ((char *) 0xFFFF8007l)
  6. #define        VID_BH        ((int *) 0xFFFF8200l)
  7. #define        VID_BM        ((int *) 0xFFFF8202l)
  8. #define        VID_BL        ((int *) 0xFFFF820Cl)
  9. #define        HOFF        ((int *) 0xFFFF820El)    
  10. #define        VWRAP        ((int *) 0xFFFF8210l)    
  11. #define        ST_Palette    ((int *) 0xFFFF8240l)
  12. #define        ST_Shift    ((int *) 0xFFFF8260l)
  13. #define        SP_Shift    ((int *) 0xFFFF8266l)
  14. #define        HHT        ((int *) 0xFFFF8282l)    /* Horiz Half Total */
  15. #define        HBB        ((int *) 0xFFFF8284l)
  16. #define        HBE        ((int *) 0xFFFF8286l)
  17. #define        HDB        ((int *) 0xFFFF8288l)
  18. #define        HDE        ((int *) 0xFFFF828Al)
  19. #define        HSS        ((int *) 0xFFFF828Cl)
  20. #define        HFS        ((int *) 0xFFFF828El)
  21. #define        HEE        ((int *) 0xFFFF8290l)
  22. #define        VFT        ((int *) 0xFFFF82A2l)
  23. #define        VBB        ((int *) 0xFFFF82A4l)
  24. #define        VBE        ((int *) 0xFFFF82A6l)
  25. #define        VDB        ((int *) 0xFFFF82A8l)
  26. #define        VDE        ((int *) 0xFFFF82AAl)
  27. #define        VSS        ((int *) 0xFFFF82ACl)
  28. #define        VMC        ((int *) 0xFFFF82C0l)
  29. #define        VCO        ((int *) 0xFFFF82C2l)
  30. #define        SP_Palette    ((int *) 0xFFFF9800l)
  31.  
  32. /* Equates file for Testing of SPARROW sound DMA channels */
  33.  
  34. #define        s_dma_ctl    ((char *) 0xFFFF8901l)
  35. #define         REC_SET    0x80
  36. #define         PLAY_SET    0x00
  37. #define         REC_REP    0x20
  38. #define         REC_SINGLE    0x00
  39. #define         REC_ENABLE    0x10
  40. #define         PLAY_REP    0x02
  41. #define         PLAY_SINGLE    0x00
  42. #define         PLAY_ENABLE    0x01
  43.  
  44. #define        f_b_um        ((char *) 0xFFFF8903l)
  45. #define        f_b_lm        ((char *) 0xFFFF8905l)
  46. #define        f_b_ll        ((char *) 0xFFFF8907l)
  47.  
  48. #define        f_a_um        ((char *) 0xFFFF8909l)
  49. #define        f_a_lm        ((char *) 0xFFFF890Bl)
  50. #define        f_a_ll        ((char *) 0xFFFF890Dl)
  51.  
  52. #define        f_e_um        ((char *) 0xFFFF890Fl)
  53. #define        f_e_lm        ((char *) 0xFFFF8911l)
  54. #define        f_e_ll        ((char *) 0xFFFF8913l)
  55.  
  56. /* Note this block of registers exist
  57.    only in the Falcon version of this chip */
  58. #define        f_b_uu        ((char *) 0xFFFF8915l)
  59. #define        f_a_uu        ((char *) 0xFFFF8917l)
  60. #define        f_e_uu        ((char *) 0xFFFF8919l)
  61.  
  62. #define        s_mode_ctl    ((short *) 0xFFFF8920l)
  63. #define         M_CHAN_0    0x0000
  64. #define         M_CHAN_1    0x1000
  65. #define         M_CHAN_2    0x2000
  66. #define         M_CHAN_3    0x3000
  67. #define         M_CHAN_4    0x4000
  68. #define         M_CHAN_OFF    0x7000
  69. #define         M_CHAN_MASK    0x7000
  70.  
  71. #define         A_CHAN_1    0x0000
  72. #define         A_CHAN_2    0x0100
  73. #define         A_CHAN_3    0x0200
  74. #define         A_CHAN_4    0x0300
  75. #define         A_CHAN_5    0x0400
  76. #define         A_CHAN_MASK    0x0700
  77.  
  78. #define         MONO_MODE    0x0080
  79. #define         WORD_MODE    0x0040
  80.  
  81. #define         S_RT_160    0x0003
  82. #define         S_RT_320    0x0002
  83. #define         S_RT_640    0x0001
  84. #define         S_RT_1280    0x0000
  85. #define         S_RT_MASK    0x0003
  86.  
  87. #define        uwire_data    ((short *) 0xFFFF8922l)
  88. #define        uwire_mask    ((short *) 0xFFFF8924l)
  89.  
  90. #define        MAX_CHANNELS    5
  91.  
  92. #define        SND        0x8000
  93. #define        INPUT_SELECT    0x0000
  94. #define         PSG_OFF    0x0000
  95. #define         PSG_EN        0x0020
  96. #define         PSG_DIS    0x0040
  97. #define        BASS        0x0800
  98. #define         FLAT        0x00C0
  99. #define        TREBLE        0x1000
  100. #define        VOLUME        0x1800
  101. #define         V_FULL        0x0500
  102. #define        RIGHT_FADE    0x2000
  103. #define         FADE_OFF    0x0280
  104. #define        LEFT_FADE    0x2800
  105. #define        SCALE        0x3000
  106. #define        CONTROL        0x3800
  107. #define         MHZ8        0x0200
  108. #define         MIX_AUX    0x0080
  109. #define         MUX_AUX    0x0060
  110. #define         MUX_ADC    0x0040
  111. #define         MUX_IN        0x0020
  112. #define        MASK        0xFFE0
  113.  
  114. #define        NULL        0
  115.